package springcloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import springcloud.domain.Order;
//业务需求 下订单->减库存->扣余额->改订单状态
@Mapper
public interface OrderDao {
    //创建订单
    void create(Order order);

    //修改订单状态：0->1
    void update (@Param("userId") Long userId, @Param("status") Integer status);
}
